Skip to main content

Create Event

Introduction

Events are used to communicate between the OPNBI component (for example, a report) and the web application code.

Prerequisites

To use the Event Property of the Geo Map, you need working Datasets with country or state names.

Objective

How to create Event Property in Map Widget.

Download Pipeline.zip file from the link given WorldMapDataset.zip

Note

To know more about creating Geo Map Click here

Now perform following steps to create event on the MAP widget.

Click on the hamburger icon.

Docusaurus Slash Introduction

  1. Click on the Dashboard tab and open Map in edit mode.

  2. The Edit menu box appears as you click on the Map icon. And a widget gets added in content place automatically in the dashboard, As shown in Figure below:

  3. Create a Geo Map with World Map Dataset, as shown in the figure below:

Docusaurus Slash Introduction

  1. Click on the Event tab which will open the Event Editor section, as shown in the figure below:

Docusaurus Slash Introduction

  1. Now write the event script in the given section
var data=event.event.data.id;
window.open('https://www.google.com/search?q=countries+'+data+'&rlz=1C1CHBF_enIN985IN985&ei=KjoTYtTyHpGD-Aa2pIPwCQ&ved=0ahUKEwjUr6ySnpD2AhWRAd4KHTbSAJ4Q4dUDCA4&uact=5&oq=countries+'+data+'&gs_lcp=Cgdnd3Mtd2l6EAMyBQgAEIAEMgUIABCABDIFCAAQgAQyBQgAEIAEMgUIABCABDIFCAAQgAQyBQgAEIAEMgUIABCABDIFCAAQgAQyBQgAEIAEOgcIABBHELADOgcIABCwAxBDOgoIABDkAhCwAxgAOgwILhDIAxCwAxBDGAE6DwguENQCEMgDELADEEMYAToECAAQQzoICAAQgAQQsQM6BQguEIAESgQIQRgASgQIRhgBULYIWJcPYPMRaAFwAXgAgAGpAYgBtgeSAQMwLjaYAQCgAQHIARLAAQHaAQYIABABGAnaAQYIARABGAg&sclient=gws-wiz');

Docusaurus Slash Introduction

  1. Then click on Save and Exit button to apply the event.

  2. Now, match your Geo Map with the below example, it should look like the figure below:

Docusaurus Slash Introduction

In order to understand in detail about other features, click on the following links:-

1. Create Geo Map

2. Create Leaflet Map

3. Formatting

4. Annotation

5. Settings